/**
 * Copyright 2018 asiainfo Inc.
 **/
package com.myz.rabbitmqspring.spring.event.handler;

import lombok.extern.slf4j.Slf4j;
import org.springframework.util.ErrorHandler;

/**
 * @author maoyz on 2018/8/28
 * @version: v1.0
 */
@Slf4j
public class MessageErrorHandler implements ErrorHandler {

    @Override
    public void handleError(Throwable throwable) {
        log.error("RabbitMQ happen a error:" + throwable.getMessage(), throwable);
    }
}
